package com.yq.tanhua.im

import android.app.Application
import com.hyphenate.EMCallBack
import com.hyphenate.chat.EMConversation
import com.yq.tanhua.TanhuaApplication

/**
 * @author: user
 * @date: 2023/4/24
 */
interface ImFunction {

    //初始化
    fun init(application: Application)

    //登录
    fun login(userName: String, userPsw: String, result: EMCallBack)

    fun loginOut()

    //预加载数据
    fun preLoadData()



    //获取本地会话列表
    suspend fun getAllConversations(): MutableMap<String, EMConversation>?

    fun testhilt()

    fun sendTextMsg(content:String,toUserId:String,emCallBack: EMCallBack)
}